package com.baige.common.core;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 返回对象的基类
 * @author wulg
 * @date 2018/12/12.
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Result<T> implements Serializable
{
    /**
     * 状态码
     */
    @ApiModelProperty(value = "状态码")
    private int statusCode;
    /**
     * 返回对象
     */
    @ApiModelProperty(value = "返回对象")
    private T result=null;
    /**
     * 错误信息
     */
    @ApiModelProperty(value = "错误信息")
    private String errorMessage;
}


